package univer.oko.utilities;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Sergey Kharlamov.
 * Date: 12.04.2006
 * Time: 7:48:51
 */

/**
 * Util class to provide convenient String
 * representation of Date
 */
public class CDDate extends Date {
    private static SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");

    public CDDate(long date) {
        super(date);
    }

    public CDDate() {
    }

    public CDDate(Date d) {
        super(d.getTime());
    }

    public String toString() {
        return format.format(this);
    }
}
